//
//  NSObject+LDObject.h
//  指乎
//
//  Created by Dean on 16/8/9.
//  Copyright © 2016年 Dean. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSObject (LDObject)
@property (nonatomic, copy) NSString *customProperty;  //自定义属性

/**
 *  打印所有属性内容 
 */
-(NSString*)ldPrintAllPropertys;
-(UIViewController *)getCurrentVC;
-(UIViewController *)getNewCurrentVC;
- (UINavigationController *)getNavigationVC;
-(NSString *)toString;
-(NSString *)objectToJSON;
+(id)jsonToObject:(id)data;
+(id)jsonToObject:(id)data error:(NSError **)error;
-(NSString *)decimalNumberWithDouble;

///获取Window当前显示的视图控制器ViewController
- (UIViewController *)findCurrentShowingViewController;
/**
 *  获取Window当前显示的视图控制器ViewController
 *
 *  @param vc   从哪个界面开始分析
 *
 *  @return 当前显示的视图控制器ViewController
 */
- (UIViewController *)findCurrentShowingViewControllerFrom:(UIViewController *)vc;


@end
